<?php
namespace app\Admin\model;
use think\Model;

/**
 *
 */
class Admin extends Model
{

    function verificate($user, $pwd)
    {
        $condition = ['user'=>$user, 'password'=>$pwd];
        $res = db('administrator')->where($condition)->find();
        return $res;
    }
}



?>